//
//  KKHttpFileManager.h
//  DecxForward
//
//  Created by 程强 on 16/11/1.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "KKHttpParse.h"
#import "KKHttpServices.h"

@interface KKHttpFileManager : NSObject

/**
 上传图片

 @param url          url
 @param dic          参数
 @param image        图片data
 @param name         图片名称<1.png>
 @param type         图片格式<png/jpg>
 @param sucBlock 成功回调
 @param failureBlock     失败回调
 */
+ (void)uploadImage:(NSString *_Nonnull)url parameter:(NSDictionary *_Nullable)dic withImageData:(NSData *_Nonnull)image imageName:(NSString *_Nonnull)name imageType:(NSString *_Nonnull)type success:(nullable KKSuccessBlock)sucBlock failure:(nullable KKFailureBlock)failureBlock;

/**
 上传视频

 @param url          url
 @param dic          参数
 @param video        视频data<1.mov>
 @param name         视频名称
 @param sucBlock 成功回调
 @param failureBlock     失败回调
 */
+ (void)uploadVideo:(NSString *_Nonnull)url parameter:(NSDictionary *_Nullable)dic withVideoData:(NSData *_Nonnull)video videoName:(NSString *_Nonnull)name success:(nullable KKSuccessBlock)sucBlock failure:(nullable KKFailureBlock)failureBlock;
@end
